package cn.itcast.erp.service;

import cn.itcast.erp.entity.Emp;
import cn.itcast.erp.entity.Orderdetail;
import cn.itcast.erp.entity.Orders;
import cn.itcast.erp.entity.utils.AjaxResult;

/**
 * 采购Service接口
 *
 * @author 崔凯铭, 罗宇航
 * @date 2019/6/12
 */

public interface OrdersService {
    //查找订单
    AjaxResult findOrders(Orders orders);

    //增加订单
    int insertOrders(Orders orders,Emp emp);

    //查询订单
    Orders findOrderByUuid(Orders orders);

    //审核订单
    int checkOrder(Orders orders, Emp emp);

    //确认订单
    int startOrder(Orders orders, Emp emp);

    //订单详情入库
    AjaxResult inStore(Orderdetail orderdetail, Emp emp);

    //订单详情出库
    AjaxResult outStore(Orderdetail orderdetail, Emp emp);
}
